<%@ page language="java" import="java.util.*,zhjb.platform.util.ServerInfo" pageEncoding="UTF-8"%>
<%
	/*---------------------------------------------
	功能描述:登录页面
	编写时间:2012-3-2
	编写人:caixiaomeng
	-----------------------------------------------*/
%>
<html>
	<head>
		<title>索为系统管理端-登录</title>
		<script src="<%=ServerInfo.getStaticServer()%>/system/js/jquery-1.4.4.min.js" type="text/javascript"></script>
	</head>
	<body onload="$('#userName').focus()" style="background-color: white;">
		<div>
			<div style="margin-top:80px;margin-left: 50px;text-align:left ">
			</div>
			<div style="background:url(<%=ServerInfo.getStaticServer()%>/system/image/lbackgrouund.gif) repeat;height:509px;">
				<div style="width:1025px;height:509px;margin:0 auto;">
					<div style="background:url(<%=ServerInfo.getStaticServer()%>/system/image/lmap.jpg) repeat;width:1025px;height:509px;position:relative;">
						<table width="100%" border="0" style="border-collapse: collapse;">
							<tr>
								<td align="right">
									<div style="text-align:right;margin-left:730px">
										<table border="0" style="border-collapse: collapse;">
											<tr>
												<td>
													<div id="loginbackground" style="height:180px;width:300px;background:url(<%=ServerInfo.getStaticServer()%>/system/image/llogin.jpg) no-repeat;margin-top:284px;margin-right:0px;position:relative;">
													<form id="loginFrom" name="loginFrom" action="${pageContext.request.contextPath}/system/login.zhtml" method="post">
														<table style="border-collapse: collapse;">
															<tr style="height:30px">
																<td></td><td></td><td></td>
															</tr>
															<tr>
																<td style="width:20px"></td>
																<td><font style="font-size:15px;" color="#1122CC"><b>用户名：</b></font></td>
																<td>
																	<div style="background:url(<%=ServerInfo.getStaticServer()%>/system/image/box_top.jpg) no-repeat;height:33px;width:169px">
																		<div style="padding-top:5px;margin-left:4px">
																			<input name="userName" type="text" id="userName" style="height:21px;width:161px;border:0px" />
																		</div>
																	</div>
																</td>
															</tr>
															<tr style="height:20px">
																<td></td><td></td><td></td>
															</tr>
															<tr>
																<td style="width:20px"></td>
																<td><font style="font-size:15px;" color="#1122CC"><b>密&nbsp;&nbsp;&nbsp;&nbsp;码：</b></font></td>
																<td>
																	<div style="background:url(<%=ServerInfo.getStaticServer()%>/system/image/box_top.jpg) no-repeat;height:33px;width:169px">
																		<div style="padding-top:5px;margin-left:4px">
																			<input name="password" id="user_password" type="password" style="height:21px;width:161px;border:0px" />
																		</div>
																	</div>
																</td>
															</tr>
															<tr style="height:50px">
																<td></td>
																<td>
																</td>
																<td>
																	<div style="float:left;background:url(<%=ServerInfo.getStaticServer()%>/system/image/larrow.jpg);height:29px;width:82px;cursor:pointer;" onclick="submitFrm()">
																		<div style="text-align:center;margin-top:7px;"><font color="#FFFFFF" style="font-size:14px;font-weight:bold">提交</font></div>
																	</div>
																	<div style="float:left;width:7px">&nbsp;</div>
																	<div style="float:left;background:url(<%=ServerInfo.getStaticServer()%>/system/image/larrow.jpg);height:29px;width:82px;cursor:pointer;" onclick="resetFrm()">
																		<div style="text-align:center;margin-top:7px;"><font color="#FFFFFF" style="font-size:14px;font-weight:bold">重置</font></div>
																	</div>
																</td>
															</tr>
															</table>
														</form>
													</div>
												</td>
											</tr>
										</table>									
									</div>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>
		<script>
			/***提交****/
			function submitFrm(){
				if($.trim($("#userName").val())==""){
					alert("请输入用户名登录系统！");
					$("#userName").focus();
					return;
				}
				if($.trim($("#user_password").val())==""){
					alert("请输入密码登录系统！");
					$("#user_password").focus();
					return;
				}
				document.getElementById("loginFrom").submit();
			}
	
			function resetFrm(){
				document.getElementById("loginFrom").reset();
			}
			
			$(document).keydown(function(e){
				if(e.which==13){
					submitFrm();
				}
			});
		</script>
	</body>
</html>
